﻿using Camc.Quality.QualityAnalysis.RFormBase;
using Camc.Quality.QualityAnalysis.RFormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.QualityAnalysis.RFormEntity
{
  public  class R管路活门气密点检查记录表氦质谱法 : RTableBase
    {

        public R管路活门气密点检查记录表氦质谱法(int serialNum, Guid rWorkStepEntityId, Guid rProcessesEntityId, int sort, string parentProductNum, string fisrtDrawingNum, string secondDrawingNum, string recordElement, string toolUsed,string recordRemark)
        {
            SerialNum = serialNum;
            RWorkStepEntityId = rWorkStepEntityId;
            RProcessesEntityId = rProcessesEntityId;
            Sort = sort;

            ParentProductNum = parentProductNum;
            FisrtDrawingNum = fisrtDrawingNum;
            SecondDrawingNum = secondDrawingNum;
            RecordElement = recordElement;
            ToolUsed = toolUsed;
            RecordRemark = recordRemark;
        }
        public override string FormName { get; protected set; } = "管路活门气密点检查记录表氦质谱法";
        public override string ParentProductNum_DisplayName { get; protected set; } = "系统名称";

        public override string FisrtDrawingNum_DisplayName { get; protected set; } = "测点前管路图号";
        public override string SecondDrawingNum_DisplayName { get; protected set; } = "测点后管路图号";
        public override string RecordElement_DisplayName { get; protected set; } = "检查方法";
        public override string ToolUsed_DisplayName { get; protected set; } = "所用工具编号";

        public RRecordRequirementsEntity SetRecordRequirements(RRecordRequirementsEntity entity, string recordRequire, string designerDemand, string processorDemand, string remarks)
        {
            entity.SetRecordRequire(recordRequire, "检查压力(MPa)");
            entity.SetDesignerDemand(designerDemand, "设计要求值Pa*m3/s");
            entity.SetProcessorDemand(processorDemand, "工艺要求值");
            entity.SetRemarks(remarks, "备注");
            return entity;
        }

        public RMeasuredResultEntity SetMeasuredResult(RMeasuredResultEntity entity, string firstMeasuredValues, string secondMeasuredValues, string thirdMeasuredValues, string fourthMeasuredValues)
        {
            entity.SetFirstMeasuredValues(firstMeasuredValues, "检查点输出Pa•m3/s");
            entity.SetSecondMeasuredValues(secondMeasuredValues, "检查点漏率Pa•m3/s");
            entity.SetThirdMeasuredValues(thirdMeasuredValues, "比对漏孔漏率Pa•m3/s");
            entity.SetFourthMeasuredValues(fourthMeasuredValues, "比对装置输出Pa•m3/s");
            return entity;
        }

        public REnvironmentEntity SetEnvironment(REnvironmentEntity entity, string temperature, string humidity, string atmPressure)
        {
            entity.SetTemperature(temperature, "温度");
            entity.SetHumidity(humidity, "湿度");
            entity.SetAtmPressure(atmPressure, "大气本体Pa•m3/s");
            return entity;
        }

    }
}
